//
//  BK_my_CouponNoDataView.m
//  bestkeep
//
//  Created by bj on 2016/11/14.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BK_my_CouponNoDataView.h"
#import "Masonry.h"
#import "BK_my_couponCommon.h"
#import "BKMyCommon.h"
@implementation BK_my_CouponNoDataView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self initlizeUI];
    }
    return self;
}

- (void)initlizeUI {
    UIImageView *img = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"BK_Coupon_no"]];
    img.hidden = NO;
    img.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:img];
    
    [img mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.mas_centerX).offset(0);
        make.centerY.mas_equalTo(self.mas_centerY).offset(-60);
//        make.width.mas_equalTo(100);
//        make.height.mas_equalTo(100);
        make.width.mas_equalTo(184);
        make.height.mas_equalTo(184);
    }];
    
    UILabel *label = [[UILabel alloc] init];
    label.hidden = NO;
    label.text = @"您还没有优惠券哦";
    label.font = [UIFont systemFontOfSize:16];
    label.textColor = RGBCOLOR(184, 184, 184, 1);
    [self addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.mas_centerX).offset(0);
        make.top.mas_equalTo(img.mas_bottom).offset(5);
        make.height.mas_equalTo(20);
    }];
}

@end
